<?php

namespace app\api\model;

use Firebase\JWT\JWT;
use think\Model;

class Base extends Model
{

    public function token($token)
    {
        $key = "session3rd";

        $obj_token = JWT::decode($token, $key,array('HS256'));

        return $obj_token;

    }

}